-- GENERATED SPELL FOR [Dragonflayer Harpooner] --


function spell0_24635(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(48193,pUnit)
pUnit:RegisterEvent('Sorts_24635', 10295, 1)
end

function spell1_24635(pUnit, Event) --@Oluf\'s Harpoon,n/a--
pUnit:FullCastSpellOnTarget(43325,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24635', 850, 1)
end

function Sorts_24635(pUnit, Event)
local choix_sorts_24635 = math.random(0, 1)
if choix_sorts_24635 == 0 then
pUnit:RegisterEvent('spell0_24635', 1, 1)
end
if choix_sorts_24635 == 1 then
pUnit:RegisterEvent('spell1_24635', 1, 1)
end
end

function mob24635_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24635', math.random(1500, 3000), 1)
end

function mob24635_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24635_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24635_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24635, 1, 'mob24635_Action')
RegisterUnitEvent(24635, 2, 'mob24635_Leave')
RegisterUnitEvent(24635, 3, 'mob24635_Kill')
RegisterUnitEvent(24635, 4, 'mob24635_Die')
